import router from "@/router";

import pinia from "@/stores";

router.beforeEach((to,from,next)=>{
    let whiteList = ["/login"];

    let userInfo = localStorage.getItem('userInfo')
    if(userInfo){
            if(to.path == '/login'){
                next(to)
            }else{
                next()
            }
    }
    next()
})
